package com.second.app.thread.reentrant.a;

/**
 * @author gyz
 * @date 2021/2/1 14:00
 */
public class MyThread extends Thread {

    private ReentrantLockService reentrantLockService;

    public MyThread(ReentrantLockService reentrantLockService) {
        this.reentrantLockService = reentrantLockService;
    }

    @Override
    public void run() {
        reentrantLockService.testMethod();
    }
}
